<T:ViewBase x:Class="WPFExcelReport.TWASTLAGE02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLKUNDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLKUNDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLWERK:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLWERK}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLABT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLABT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLWAKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLWAKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLLAGE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLLAGE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLPOSTYP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLPOSTYP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLPARTGL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLPARTGL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WASLPGLKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWASTLAGE.WASLPGLKZ}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsWASTLAGE,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwWASTLAGE}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwWASTLAGE, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="WASLMANDANT"
                                    Binding="{Binding Path=WASLMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLKUNDNR"
                                    Binding="{Binding Path=WASLKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLWERK"
                                    Binding="{Binding Path=WASLWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLABT"
                                    Binding="{Binding Path=WASLABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLWAKZ"
                                    Binding="{Binding Path=WASLWAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLWAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLART"
                                    Binding="{Binding Path=WASLART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLPOS"
                                    Binding="{Binding Path=WASLPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLLAGE"
                                    Binding="{Binding Path=WASLLAGE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLLAGE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLPOSTYP"
                                    Binding="{Binding Path=WASLPOSTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLPOSTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLPARTGL"
                                    Binding="{Binding Path=WASLPARTGL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLPARTGL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLPGLKZ"
                                    Binding="{Binding Path=WASLPGLKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLPGLKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLVAR"
                                    Binding="{Binding Path=WASLVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLFARBE"
                                    Binding="{Binding Path=WASLFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLDESS"
                                    Binding="{Binding Path=WASLDESS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLDESS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLCOLORIT"
                                    Binding="{Binding Path=WASLCOLORIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLCOLORIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLBESCHICH"
                                    Binding="{Binding Path=WASLBESCHICH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLBESCHICH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLAUFM"
                                    Binding="{Binding Path=WASLAUFM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLAUFM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLVERP"
                                    Binding="{Binding Path=WASLVERP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLVERP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMATKZ"
                                    Binding="{Binding Path=WASLMATKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMATKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMKUNDNR"
                                    Binding="{Binding Path=WASLMKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMWERK"
                                    Binding="{Binding Path=WASLMWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMABT"
                                    Binding="{Binding Path=WASLMABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMART"
                                    Binding="{Binding Path=WASLMART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMVAR"
                                    Binding="{Binding Path=WASLMVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMKZFARBE"
                                    Binding="{Binding Path=WASLMKZFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMKZFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMFARBE"
                                    Binding="{Binding Path=WASLMFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMDESS"
                                    Binding="{Binding Path=WASLMDESS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMDESS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMCOLORIT"
                                    Binding="{Binding Path=WASLMCOLORIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMCOLORIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMBESCHICH"
                                    Binding="{Binding Path=WASLMBESCHICH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMBESCHICH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLVERBR"
                                    Binding="{Binding Path=WASLVERBR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLVERBR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLVERBR100"
                                    Binding="{Binding Path=WASLVERBR100, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLVERBR100}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMAEH"
                                    Binding="{Binding Path=WASLMAEH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMAEH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMAEHGRP"
                                    Binding="{Binding Path=WASLMAEHGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMAEHGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMAEHFKT"
                                    Binding="{Binding Path=WASLMAEHFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMAEHFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMEEH"
                                    Binding="{Binding Path=WASLMEEH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMEEH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMEEHGRP"
                                    Binding="{Binding Path=WASLMEEHGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMEEHGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLMEEHFKT"
                                    Binding="{Binding Path=WASLMEEHFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLMEEHFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLVERL"
                                    Binding="{Binding Path=WASLVERL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLVERL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLLO"
                                    Binding="{Binding Path=WASLLO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLLO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLDKZ"
                                    Binding="{Binding Path=WASLDKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLDKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLABRKZ"
                                    Binding="{Binding Path=WASLABRKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLABRKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLAUFKZ"
                                    Binding="{Binding Path=WASLAUFKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLAUFKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLTEXTSL"
                                    Binding="{Binding Path=WASLTEXTSL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLTEXTSL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLFILLER"
                                    Binding="{Binding Path=WASLFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLAENZL"
                                    Binding="{Binding Path=WASLAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLAENB"
                                    Binding="{Binding Path=WASLAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLAEND"
                                    Binding="{Binding Path=WASLAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLNEUB"
                                    Binding="{Binding Path=WASLNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WASLNEUD"
                                    Binding="{Binding Path=WASLNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WASLNEUD}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
